package com.project.app;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;

@EActivity(R.layout.activity_main)
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    @Click({R.id.btn_web_js,R.id.btn_js_web,R.id.btn_js_web_DSBrige ,R.id.btn_js_web_DSBrige2})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.btn_web_js:
                AndroidCallJsActivity_.intent(this).start();
                break;
            case R.id.btn_js_web:
                JsCallAndroidActivity_.intent(this).start();
                break;
            case R.id.btn_js_web_DSBrige:
                DSBridgeJSCallAndroidActivity_.intent(this).start();
                break;
            case R.id.btn_js_web_DSBrige2:
                DSBridgeAndroidCallJsActivity_.intent(this).start();
                break;
        }
    }



}
